<div class="toolbar">
	<h1><:$title:></h1>
	<:if $logoutVisible eq 1 && $smarty.session.uid ne 0:>
	<a class="leftButton" id="logout" target="_webapp" href="<:$ctx:>/auth/logout/">Log Out</a>
	<:/if:>
	<:if $aboutVisible eq 1:>
	<a class="leftButton slideup" id="credit" href="#about">About</a>
	<:/if:>
	<:if $loginLeftVisible eq 1:>
	<a class="leftButton" href="<:$ctx:>/auth/login/?back=Back&view=<:$currentView:>">Login</a>
	<:/if:>
	<:if $loginRightVisible eq 1 :>
	<a class="button" href="<:$ctx:>/auth/login/?back=Back&view=<:$currentView:>">Login</a>
	<:/if:>
	<:if $loginHeartVisible eq 1 :>
	<a class="button" href="<:$ctx:>/auth/login/?back=Back&view=<:$currentView:>"><img src="<:$ctx:>/images/icons/heart-normal.png"/></a>
	<:/if:>
	<:if $backTitle ne "":>
	<a href="#" class="back"><:$backTitle:></a>
	<:/if:>
	<:if $searchVisible eq 1:>
	<a class="button slidedown" href="<:$ctx:>/search/?view=<:$currentView:>&back=Back"><img src="<:$ctx:>/images/icons/magnify.png"/></a>
	<:/if:>
	<:if $detailFavVisible eq 1 :>
	<:if $favProduct eq 1 :>
		<button id="detailFavButton" parentid="<:$parentId:>" class="button slidedown" href="<:$ctx:>/user/removeFavProduct/?uid=<:$uid:>&pid=<:$pid:>" ref="remove" onclick="processFavProduct(this)"><img src="<:$ctx:>/images/icons/heart-liked.png"/></button>
	<:else:>	
		<button id="detailFavButton" parentid="<:$parentId:>" class="button slidedown" href="<:$ctx:>/user/addFavProduct/?uid=<:$uid:>&pid=<:$pid:>" ref="add" onclick="processFavProduct(this)"><img src="<:$ctx:>/images/icons/heart-normal.png"/></button>
	<:/if:>
	<:/if:>
	<:if $viewFavVisible eq 1 :>
		<button id="viewFavButton" parentid="<:$parentId:>" class="button slidedown" href="#" ref="remove" onclick="processViewFavProduct(this)"><img src="<:$ctx:>/images/icons/heart-liked.png"/></button>
	<:/if:>
</div>